package top.lucas9.wechat.push.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @author lucas9
 * @date 2022/11/26 11:57
 */
@Data
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String username;
    private String openId;
    private String latitude;
    private String longitude;

    public boolean hasLocation() {
        return latitude != null && longitude != null;
    }
}
